package cate.common.table.activity.bosstrain.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.bosstrain.row.ChallengeRewardRow;

public class ChallengeRewardSheet extends ESheet<ChallengeRewardRow> {
    @Override
    public String getSheetName() {
        return "挑战奖励";
    }

    public ChallengeRewardRow findRowByDamage(double damage, int configId) {
        ChallengeRewardRow res = null;
        for (ChallengeRewardRow r :
                getList()) {
            if (r.damage <= damage && r.configId == configId) {
                res = r;
            }
        }
        return res;
    }
}
